package com.aynu.gulimall.product.service;

import com.aynu.gulimall.product.vo.AttrGroupwithAttrVo;
import com.aynu.gulimall.product.vo.SkuItemVo;
import com.aynu.gulimall.product.vo.SpuInfoGroupAttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.aynu.common.utils.PageUtils;
import com.aynu.gulimall.product.entity.AttrGroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author majun
 * @email mjun1833@foxmail.com
 * @date 2020-06-06 21:03:21
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    List<AttrGroupwithAttrVo> getAttrGroupWithAttr(Long catelogId);

    /**
     * 根据spuid，查询基本的属性信息
     *
     * @param catalogId
     * @param spuId
     * @return
     */
    List<SpuInfoGroupAttrVo> getAttrGroupWithAttrsBySpuId(Long catalogId, Long spuId);
}

